<div class="page-content groupBody"> 
 
 <form>
  <div class="bgw">
 
  <div class="weui_cells weui_cells_split" style="margin-top: 0px">
          <div class="weui_cell">
                        <div class="weui_cell_hd"><label style="width: 76px;"   class="weui_label">标题</label></div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <input class="weui_input" type="text" id="title" v-model="title" :value="title"  placeholder="标题">
                        </div>
           </div>

            <div class="weui_cell">
                        <div class="weui_cell_hd"><label style="width: 76px;"   class="weui_label">说明</label></div>
                        <div class="weui_cell_bd weui_cell_primary">
                            
                             <textarea  class="weui_input"  id="desc"  placeholder='补充说明' v-model="desc" :value="desc" auto-height   maxlength="800"></textarea>
                        </div>
           </div>

           <div class="weui_cell">
                        <div class="weui_cell_hd"><label style="width: 76px;"   class="weui_label">截止日期</label></div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <input class="weui_input" type="date"  readonly id="end_date"  placeholder="选择投票截止日期">
                        </div>
           </div>



    </div>



 <div class="vote-option">
 
	<template v-for="(item,idx) in options"> 
	   <div class="vote-option-item">
	  <img src='/pages/community/images/icodel.png' class="ico" :data-id="idx"   @click='del_option' />
	  <div class="vote-option-text"><input :value='item.text' placeholder='选项' :data-id="idx"    @keyup='setOption'></input></div>
	  <div class='clear'></div>
	  </div>
	</template>
 
	  <div class="vote-option-item vote-option-new" @click='add_option' >
		  <img src='/pages/community/images/icoadd.png' class="ico"  />
		  <div class="vote-option-text" style="border-bottom: none;">添加选项</div>
		  <div class='clear'></div>
	  </div>

 </div>

 </div>

   <div class="weui_cells weui_cells_checkbox">
	        <label class="weui_cell weui_check_label"  >
	            <div class="weui_cell_hd">
	                 <input type="checkbox" class="weui_check" name="checkbox1"  :checked="choice==1?'':'checked'"  @click="switch1Change" >
	                <i class="weui_icon_checked"></i>
	            </div>
	             <div class="weui_cell_bd weui_cell_primary">开启多选</div>
	            
	        </label>
	        
	    </div>


 

 


<div style="padding: 12px">
   <textarea name="imgs"  style="display:none">{{imgsString}}</textarea>
	 <div data-type="upload" upload="4" id="pageAddUpload"></div> 
</div>
 
 
  <div class="bottom-fixed"> 
   <a  class="btn publish-btn" @click="formSubmit">确认保存</a> 
  </div>
  
 
</form>
 

</div>